package com.paradogs.gs;

import cfg.Item;
import com.paradogs.framework.EnableParadogs;
import luban.Cfg2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.io.IOException;
import java.util.ArrayList;

/**
 * @author: yumi
 * @date: 2024/10/8  14:49
 * @Description: 启动类
 */
@EnableParadogs
@MapperScan({"com.gitee.sunchenbin.mybatis.actable.dao.*", "com.paradogs.gs.*"})
@ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*"})
@SpringBootApplication
public class GameServerApplication {
    public static void main(String[] args) throws IOException {
        System.setProperty("jdk.virtualThreadScheduler.parallelism", "1");
        System.setProperty("jdk.virtualThreadScheduler.maxPoolSize", "1");
//        CfgUtils.loadCfgData(); // 加载配置表
        luban.Cfg2.load();
        SpringApplication.run(GameServerApplication.class, args);
    }
}
